﻿using System.Net.Mail;

/*
 * Esta clase automatiza un poco más a SmtpClient.
 */

public class cliente_smtp : SmtpClient
{
    protected const short puerto_gmail = 587;
    protected const string servidor_smtp_gmail = "smtp.gmail.com";

    protected const short puerto_hotmail = 0000;
    protected const string servidor_smtp_hotmail = "";
    
    

	public cliente_smtp()
	{
        this.Port = puerto_gmail;
        this.Credentials = new System.Net.NetworkCredential ("gioman839@gmail.com","25806534");
        this.EnableSsl = true;
        this.Host = servidor_smtp_gmail;
	}

    // En el código se usa Send() de SmtpClient
}